package com.engine4cloud.tdf.supervision.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import com.engine4cloud.tdf.supervision.dto.query.JzdxLocPhoneQueryDTO;
import com.engine4cloud.tdf.supervision.dto.query.JzdxTerminalQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxLocPhoneResultDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxTerminalManageResultDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxTerminalNeedLocResultDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxTerminalManageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JzdxTerminalManageMapper extends TdfBaseMapper<JzdxTerminalManageEntity> {
    IPage<JzdxLocPhoneResultDTO> locPhoneList(Page<JzdxTerminalManageEntity> page, @Param("dto") JzdxLocPhoneQueryDTO dto, @Param("deptIdList") List<Long> deptIdList);

    JzdxTerminalManageResultDTO findByTerminal(@Param("dto") JzdxTerminalQueryDTO dto);

    List<JzdxTerminalNeedLocResultDTO> findNeedLoc(@Param("deptIdList") List<Long> deptIdList);
}